import request from '@/utils/request/index2.js'
import StorageUtils from "@/utils/StorageUtils";
// api地址
const api = {
  list: 'device/ox/data/list',
  statistic:'device/ox/data/statistic',
  YearStatistics:'device/ox/data/statistic/year'
}

// 收货地址列表
export const getoxlist = (param) => {
  let userId=StorageUtils.get('USER_INFO_KEY').id
  return request.get(api.list, {...param,userId:userId})
}
export const getoxTimes = (param) => {
  let userId=StorageUtils.get('USER_INFO_KEY').id
  return request.get(api.statistic, {...param,userId:userId})
}
export const getYearStatistics = (param) => {
  let userId=StorageUtils.get('USER_INFO_KEY').id
  return request.get(api.YearStatistics, {userId:userId})
}
